package com.ebuy.mall.dao;

import com.ebuy.mall.entity.EBuyMallSeckill;
import com.ebuy.mall.util.PageQueryUtil;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface EBuyMallSeckillMapper {
    int deleteByPrimaryKey(Long seckillId);

    int insert(EBuyMallSeckill record);

    int insertSelective(EBuyMallSeckill record);

    EBuyMallSeckill selectByPrimaryKey(Long seckillId);

    int updateByPrimaryKeySelective(EBuyMallSeckill record);

    int updateByPrimaryKey(EBuyMallSeckill record);

    List<EBuyMallSeckill> findSeckillList(PageQueryUtil pageUtil);

    int getTotalSeckills(PageQueryUtil pageUtil);

    List<EBuyMallSeckill> findHomeSeckillList();

    int getHomeTotalSeckills(PageQueryUtil pageUtil);

    void killByProcedure(Map<String, Object> map);

    boolean addStock(Long seckillId);
}
